import { useEffect, useState } from 'react'
import { getTabOneData } from "../request/index";
// 自定义hook实列
function useCounter(initialValue = 0) {
    const [count, setCount] = useState(initialValue);

    const [data, setData] = useState([])

    const increment = () => {
        setCount(count + 1);
    };

    const decrement = () => {
        setCount(count - 1);
    };


    return [count, increment, decrement];
}


export default useCounter
